<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title th:text="${oneStore!=null}?'修改仓库 - 仓储管理系统':'新增仓库 - 仓储管理系统'">新增仓库 - 仓储管理系统</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <meta name="keywords" content="LightYear,光年,后台模板,后台管理系统,光年HTML模板">
    <meta name="description" content="LightYear是一个基于Bootstrap v3.3.7的后台管理系统的HTML模板。">
    <meta name="author" content="yinqi">
    <link href="light/css/bootstrap.min.css" th:href="@{/light/css/bootstrap.min.css}"  rel="stylesheet">
    <link href="light/css/materialdesignicons.min.css" th:href="@{/light/css/materialdesignicons.min.css}" rel="stylesheet">
    <link href="light/css/style.min.css" th:href="@{/light/css/style.min.css}" rel="stylesheet">
    <style type="text/css">
        #store{
            margin-top: 30px;
            margin-left: 700px;
            text-align: center;
        }
        .h3infor{
            margin-top: 120px;
            margin-left: 1000px;
        }
        .inputwith{
            width: 400px;
        }
        .bt_cre{
            margin-left: -610px;
            margin-top: 25px;
        }
        .bt_can{
            margin-left: 150px;
            margin-top: 25px;
        }
    </style>
</head>
<body style="overflow: hidden">
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <div th:replace="commons/bar::sidebar(activeUri='stores')"></div>
        <!--End 左侧导航-->

        <!--头部信息-->
        <header class="lyear-layout-header">

            <nav class="navbar navbar-default">
                <div class="topbar">
                    <div class="topbar-left">
                        <div class="lyear-aside-toggler">
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                        </div>
                        <span class="navbar-page-title" th:text="${oneStore!=null}?'仓储管理-修改仓储':'仓储管理-添加仓储'">  </span>
                    </div>
                    <div th:replace="commons/bar::header"></div>
                </div>
            </nav>
        </header>
        <!--End 头部信息-->

        <!--页面主要内容-->
        <main>
            <h3 class="h3infor">仓储信息登记</h3>
            <form id="store" class="form-horizontal" role="form" th:action="@{/store/add}" method="post">
            <input type="hidden" name="_method" value="PUT" th:if="${oneStore!=null}"/>
            <input type="hidden" class="form-control inputwith" name="sid" th:value="${oneStore!=null}?${oneStore.sid}">
                <div class="form-group">
                    <label  class="col-sm-2 control-label">仓储名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control inputwith"  placeholder="京东仓储" name="sname" th:value="${oneStore!=null}?${oneStore.sname}">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">仓储地址</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control inputwith"  placeholder="河南郑州" name="saddress" th:value="${oneStore!=null}?${oneStore.saddress}">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">管理员</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control inputwith"  placeholder="刘强东" name="sadmin" th:value="${oneStore!=null}?${oneStore.sadmin}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary btn-w-md bt_cre">创建</button>
                        <a th:href="@{/stores}" class="btn btn-warning btn-w-md bt_can">取消</a>
                    </div>
                </div>
            </form>
        </main>
        <!--End 页面主要内容-->
    </div>
</div>
<script type="text/javascript" src="light/js/jquery.min.js" th:src="@{/light/js/jquery.min.js}"></script>
<script type="text/javascript" src="light/js/bootstrap.min.js" th:src="@{/light/js/bootstrap.min.js}"></script>
<script type="text/javascript" src="light/js/perfect-scrollbar.min.js" th:src="@{/light/js/perfect-scrollbar.min.js}"></script>
<script type="text/javascript" src="light/js/main.min.js" th:src="@{/light/js/main.min.js}"></script>

</body>
</html>